import * as VueRouter from "vue-router";
//路由规则描述数组

const routes = [
  { path: "/", redirect: "/WindowMain/Home" },
  {
    path: "/WindowMain",
    component: () => import("./window/WindowMain.vue"),
    children: [
      { path: "Home", component: () => import("./window/WindowMain/Home.vue") },
      {
        path: "About",
        component: () => import("./window/WindowMain/About.vue"),
      },
    ],
  },
];

//导出路由对象
export let router = VueRouter.createRouter({
  history: VueRouter.createWebHistory(),
  routes,
});
